{template 'common/header'}

<ul class="nav nav-tabs">
    <li ><a href="{php echo $this->createWebUrl('finance', array('op'=>'index'))}">收支明细</a></li>
    <li class="active" ><a href="{php echo $this->createWebUrl('finance', array('op'=>'statistics'))}">收支报表</a></li>
</ul>
<div>
    <div class="row">
        <div class="col-xs-3">
            <input type="date" value="{$start_day}" class="form-control" id="start_day" />
        </div>
        <div class="col-xs-3">
            <input type="date" value="{$end_day}" class="form-control" id="end_day" />
        </div>
        <div class="col-xs-3">
            <button class="btn btn-primary">统计</button>
        </div>
    </div>
    <br />
    <table class="table">
        <tr>
            <th>财务类型</th>
            <th>金额</th>
        </tr>
        {loop $data $log}
        <tr>
            <td>
                {if $log['type'] == 'charge'}
                手续费
                {else if $log['type'] == 'freight'}
                运费
                {else if $log['type'] == 'gen_pay'}
                代付款
                {else if $log['type'] == 'se_pay'}
                结算代付款
                {else}
                其他
                {/if}
            </td>
            <td>{$log['sum']}</td>
        </tr>
        {/loop}
    </table>
</div>


{template 'common/footer'}